package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface OrderService {
    Result order(Map map) throws Exception;

    Map findById(Integer id);

    PageResult findPageByOrder(QueryPageBean queryPageBean) throws Exception;

    void delete(Integer id);

    List<Setmeal> findAllSetmeal();

    Result add(Map map, Integer[] setmealIds) throws Exception;


    Order findEditDataById(Integer id);

    public Map findCountByDate(List<String> list);

    List<Map> getOrderInfoByMemberIdAndDate(Map map);

    Map findOrderDetailsByOrderId(Integer orderId);

    Integer findSetmealIdByOrderId(Integer id);

    void edit(Order order);

    void updateStatusAndtype(Order order);


    Map getOrderInfoByMemberId(Integer id);
}
